#/bin/bash

# 使用 clang-format 格式化指定目录的 c/h 文件

find components/applications/apps-projector/source -type f \
    -path "*/hcprojector_app/guider/custom/*" \
    -o -path "*/hcprojector_app/guider/generated/images/*" \
    -o -path "*/hcprojector_app/ui_rsc/*" -prune -o \
    -name "*.c" -follow \
    -exec clang-format -i -style=file {} +


find components/applications/apps-projector/source -type f \
    -path "*/hcprojector_app/guider/custom/*" \
    -o -path "*/hcprojector_app/guider/generated/images/*" \
    -o -path "*/hcprojector_app/ui_rsc/*" -prune -o \
    -name "*.h" -follow \
    -exec clang-format -i -style=file {} +